package com.ftg.product.login.mapper;


import com.ftg.product.login.pojo.Admin;
import com.ftg.product.login.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface LoginMapper {
    @Select("select * from admin where username=#{username} and password=#{password}")
    public List<Map<String, Object>> show(Admin admin);
    @Select("select * from user where username=#{username} and password=#{password}")
    public List<Map<String, Object>> showall(User user);




}
